const { defineConfig } = require('@vue/cli-service');

// 配置路径
const path = require("path");
function resolve(dir) {
  return path.join(__dirname, dir);
}

module.exports = defineConfig({
  // 打包输出的文件夹名
  outputDir: "dist",
  // 打包配置成相对路径
  publicPath: './',
  transpileDependencies: true,
  chainWebpack: config => {
    config.resolve.alias
      .set("@", resolve("src"));
  },
});
